package com.example.yuntiku.Servlet;

import com.example.yuntiku.dao.ExamDao;
import com.example.yuntiku.dao.impl.ExamDaoImpl;
import com.example.yuntiku.dao.impl.TeacherDao;
import com.example.yuntiku.entity.Exam;
import com.example.yuntiku.entity.Teacher;

import java.io.*;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.*;
import javax.servlet.annotation.*;

@WebServlet(name = "cs", value = "/cs")
public class cs extends HttpServlet {
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
        ExamDaoImpl examDao=new ExamDaoImpl();
        Exam exam= examDao.id(82);
        request.setAttribute("exam", exam);
        request.getRequestDispatcher("cs.jsp").forward(request,response);
    }
}